package com.yc.project1_matrix.single;

import com.yc.project1_matrix.MatrixGenerater;

public class Test1_SerialMatrix {
    public static void main(String[] args) {
        //生成2个矩阵
        double  matrix1[][] = MatrixGenerater.generate(2000,2000);
        double  matrix2[][] =MatrixGenerater.generate(2000,2000);//4 000 000线程
        //结果矩阵
        double result[][]= new double [matrix1.length][matrix2[0].length];
        long start = System.currentTimeMillis();

        SeriaMultiplier.multiply(matrix1,matrix2, result);
        long end =System.currentTimeMillis();
        System.out.println("计算串行矩阵乘法时间"+(end-start));//计算串行矩阵乘法时间33271

    }
}
